﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WeaponInfo{

	private int id;//武器id
	private string name;//武器名字
	private string nameChina;//中文名
	private int typeId;//类型id
	private string typeName;//类型名字
	private string grade;//等级
	private int isAuto;//是否自动
	private int baseType;//基础类型
	private float speed;//飞行速度
	private float durationTime;//持续时间
	private float attackRateTime;//cd
	private float damage;//攻击力
	private float attackDistance;//攻击范围
	private string icon;//图标资源
	private string prefab_body;//战斗贴图
	private string prefab_explosion;//爆炸效果
	private string musicStart;//发射声音
	private string musicEnd;//结束声音
	private int specOne;//特殊能力1
	private int specTwo;//特殊能力2
	private int specThree;//特殊能力3
	// private string eff_v1;//效果值
	private string desc;//描述
	private bool isReady=true;

	public void ShowSelf(){
		Debug.Log("id-------------------->" + id);
		Debug.Log("name------------------>" + name);
		Debug.Log("nameChina------------->" + nameChina);
		Debug.Log("typeId---------------->" + typeId);
		Debug.Log("typeName-------------->" + typeName);
		Debug.Log("grade----------------->" + grade);
		Debug.Log("isAuto---------------->" + isAuto);
		Debug.Log("baseType-------------->" + baseType);
		Debug.Log("speed----------------->" + speed);
		Debug.Log("durationTime---------->" + durationTime);
		Debug.Log("attackRateTime-------->" + attackRateTime);
		Debug.Log("damage---------------->" + damage);
		Debug.Log("attackDistance-------->" + attackDistance);
		Debug.Log("icon------------------>" + icon);
		Debug.Log("prefab_body----------->" + prefab_body);
		Debug.Log("prefab_explosion------>" + prefab_explosion);
		Debug.Log("musicStart------------>" + musicStart);
		Debug.Log("musicEnd-------------->" + musicEnd);
		Debug.Log("specOne--------------->" + specOne);
		Debug.Log("specTwo--------------->" + specTwo);
		Debug.Log("specThree------------->" + specThree);
		Debug.Log("desc------------------>" + desc);
	}

	public int ID{
		set{
			id = value;
		}
		get{
			return id;
		}
	}

	public string Name{
		set{
			name = value;
		}
		get{
			return name;
		}
	}

	public string NameChina{
		set{
			nameChina = value;
		}
		get{
			return nameChina;
		}
	}

	public int TypeId{
		set{
			typeId = value;
		}
		get{
			return typeId;
		}
	}

	public string TypeName{
		set{
			typeName = value;
		}
		get{
			return typeName;
		}
	}

	public string Grade{
		set{
			grade = value;
		}
		get{
			return grade;
		}
	}

	public int IsAuto{
		set{
			isAuto = value;
		}
		get{
			return isAuto;
		}
	}

	public int BaseType{
		set{
			baseType = value;
		}
		get{
			return baseType;
		}
	}

	public float Speed{
		set{
			speed = value;
		}
		get{
			return speed;
		}
	}

	public float DurationTime{
		set{
			durationTime = value;
		}
		get{
			return durationTime;
		}
	}

	public float AttackRateTime{
		set{
			attackRateTime = value;
		}
		get{
			return attackRateTime;
		}
	}

	public float Damage{
		set{
			damage = value;
		}
		get{
			return damage;
		}
	}

	public float AttackDistance{
		set{
			attackDistance = value;
		}
		get{
			return attackDistance;
		}
	}

	public string Icon{
		set{
			icon = value;
		}
		get{
			return icon;
		}
	}

	public string Prefab_body{
		set{
			prefab_body = value;
		}
		get{
			return prefab_body;
		}
	}

	public string Prefab_explosion{
		set{
			prefab_explosion = value;
		}
		get{
			return prefab_explosion;
		}
	}

	public string MusicStart{
		set{
			musicStart = value;
		}
		get{
			return musicStart;
		}
	}

	public string MusicEnd{
		set{
			musicEnd = value;
		}
		get{
			return musicEnd;
		}
	}

	public int SpecOne{
		set{
			specOne = value;
		}
		get{
			return specOne;
		}
	}

	public int SpecTwo{
		set{
			specTwo = value;
		}
		get{
			return specTwo;
		}
	}

	public int SpecThree{
		set{
			specThree = value;
		}
		get{
			return specThree;
		}
	}

	public string Desc{
		set{
			desc = value;
		}
		get{
			return desc;
		}
	}
	public bool IsReady{
		set{
			isReady = value;
		}
		get{
			return isReady;
		}
	}

}
